﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace RuntimeHelloWorlds
{
	/// <summary>
	/// Simple invoking of the WriteLine method with
	/// plain Reflection.
	/// </summary>
	public class ReflectionHelloWorld
	{
		public void SayHelloWorld()
		{
			MethodInfo writeLine = typeof(Console).GetMethod("WriteLine", new[] { typeof(string) });
			writeLine.Invoke(null, new[] {"Hello, World! (Reflection)"});
		}
	}
}
